<div class="container">
  <div class="row">
    <div class="span5">
      <div class="body_section">
        <%= image_tag "coffee_cup_3.png", :class => 'body_section_image' %>
      </div>
    </div>
    <div class="span7">
      <h1><%= t 'tao_tai_khoan' %></h1>
      
      <%= form_tag dang_ky_path, :id => 'dang_nhap' do %>
      <% if flash.now[:loi].present? %>
      <p class="alert alert-error input-xlarge">
        <%= flash.now[:loi]%>
      </p>
      <% end %>
      <% if flash.now[:thanh_cong].present? %>
      <p class="alert alert-success input-xlarge">
        <%= flash.now[:thanh_cong]%>
      </p>
      <% end %>
      <p>
        <%= label_tag :email, t('email') %>
        <%= text_field_tag :email, params[:email], :class=>"input-xlarge" %>
        <% if flash.now[:loi].present? %>
          <span class="help-block"><%= t 'email_phai_hop_le_va_chua_dang_ki'%></span>
        <% end %>
      </p>
      <p>
        <%= label_tag :ten_hien_thi, t('ten_hien_thi') %>
        <%= text_field_tag :ten_hien_thi, params[:ten_hien_thi], :class=>"input-xlarge" %>
        <% if flash.now[:loi].present? %>
          <span class="help-block"><%= t 'ten_hien_thi_co_do_dai_tu_4_den_40'%></span>
        <% end %>
      </p>
      <p>
        <%= label_tag :mat_khau, t('mat_khau') %>
        <%= password_field_tag :mat_khau, '', :class=>"input-xlarge" %>
         <% if flash.now[:loi].present? %>
          <span class="help-block"><%= t 'mat_khau_phai_dai_hon_6'%></span>
        <% end %>
      </p>
      <p>
        <%= label_tag :mat_khau, t('nhac_lai_mat_khau') %>
        <%= password_field_tag :mat_khau_confirmation, '', :class=>"input-xlarge" %>
        <% if flash.now[:loi].present? %>
          <span class="help-block"><%= t 'mat_khau_phai_duoc_go_hai_lan'%></span>
        <% end %>
      </p>
      <p>
      	<%= label_tag nil, t('dien_ma_xac_nhan') %>
      	<%= recaptcha_tags :display=>{:theme => 'clean'}%>
      </p>
      <p >
        <%= submit_tag t('dang_ky'), :class=>"btn btn-primary" %>
      </p>
      <p>
        <%= link_to t('quen_mat_khau'), url_for(:action => 'quen_mat_khau', :controller => 'nguoi_dung')%>
      </p>
      <% end %>
    </div>
  </div>
</div>
